<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>jQuery Accordion Test Suite</title>
	
	<link rel="stylesheet" href="../demo/demo.css" />
	<script type="text/javascript" src="../lib/jquery.js"></script>
	<script type="text/javascript" src="../lib/jquery.dimensions.js"></script>
	<script type="text/javascript">
$.fn.extend({
	leak: function() {
		// removing this line stops the leak
		var container = this;
		return this.bind("click", function clickHandler() {});
	}
});

$(function() {
	jQuery('#list2')
		// removing this, too
		.leak()
		// and this as well!
		.change(function() {});
});
	</script>
</head>
<body>
	<h1 id="banner">jQuery - Leak Suite</h1>

		<dl id="list2">
			<dt class="red">Red</dt>
			<dd>
				Fancy stuff about red thingies.
			</dd>
			<dt class="green selected">Green</dt>
			<dd>
				Green! Green! Green!
			</dd>
			<dt class="blue">Blue</dt>
			<dd>
				Cool kids are blue.
			</dd>
		</dl>
	</body>
</html>